import {customeStruct} from '../utils';
const itf = customeStruct.interface;
export const InitData = itf({
    payload: itf({
        brands: [itf({
            id: 'string',
            name: 'string'
        })],
    })
});
export const List = itf({
    payload: itf({
        content: [itf(Object.assign({
            id: 'string',
            dealerCode: 'string',
            partInvoiceCode: 'string',
            currency: 'number',
            invoiceAmount: 'number',
            invoicedDate: 'datetime',
            status: 'number',
            partShipmentCode: 'string',
        }))],
        totalElements: 'number',
    })
});
export const Detail = itf({
    payload: itf(Object.assign({
        id: 'string',
        partInvoiceCode: 'string',
        invoiceAmount: 'number',
        currency: 'number',
        status: 'number',
        invoicedDate: 'datetime',
        partShipmentCode: 'string',
        shipmentType: 'number',
        origin: 'string? | null',
        destination: 'string? | null',
        expectShipmentDate: 'datetime',
        declarePlace: 'number',
        declareType: 'number',
        lcCode: 'string? | null',
        receipterName: 'string? | null',
        receiptTime: 'datetime? | null',
        rowVersion: 'string',
        packingListDetails: [
            {
                id: 'string',
                packingListCode: 'string',
                packing: 'number? | null',
                container: 'string? | null',
                length: 'number? | null',
                width: 'number? | null',
                height: 'number? | null',
                volume: 'number? | null',
                netWeight: 'number? | null',
                grossWeight: 'number? | null',
                packingType: 'number? | null',
            }
        ],
        partOrderPIDetails: [
            {
                id: 'string',
                partSaleOrderCode: 'string? | null',
                partOrderPICode: 'string? | null',
                currency: 'number? | null',
                partCode: 'string? | null',
                partName: 'string? | null',
                quantity: 'number? | null',
                price: 'number? | null',
                totalAmount: 'number? | null',
            }
        ],
    }))
});

